<?php

/**
 * MenuManager class.
 * MenuManager is the data structure for keeping
 */
class MenuManager extends CFormModel
{
	public $title;
	public $url;
	
	/**
	 * Declares the validation rules.
	 * The rules state that title and url are required,
	 */
	public function rules()
	{
		return array(
			// title and url are required
			array('title, url', 'required'),
		);
	}
	
	/**
	 * Declares attribute labels.
	 */
	public function attributeLabels()
	{
		return array(
			'title'=>AdmincpModule::t("Title menu"),
			'url'=>AdmincpModule::t("Url"),
		);
	}
}
